package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.web.bind.annotation.RequestBody;

import java.lang.reflect.InvocationTargetException;

public interface WmNewsService extends IService<WmNews> {

    /*
        条件查询文章列表
     */
    public ResponseResult findList(@RequestBody NewsAuthDto dto);

    public ResponseResult submitNews(WmNewsDto dto);

    /**
     * 文章的上下架
     */
    public ResponseResult downOrUp(WmNewsDto wmNewsDto);

    ResponseResult findWmNewsVo(Integer id) throws InvocationTargetException, IllegalAccessException;

    ResponseResult findAll(WmNewsPageReqDto dto);
}
